package com.ruoyi.eat.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品对象 goods_spu
 *
 */
public class GoodsSpu extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    private Long id;


    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String name;

    /**
     * 卖点
     */
    @Excel(name = "卖点")
    private String sellPoint;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;

    /**
     * 分类
     */
    @Excel(name = "分类")
    private Long categoryFirst;

    /**
     * 分类
     */
    @Excel(name = "分类")
    private String categoryFirstName;


    /**
     * 美食图片
     */
    @Excel(name = "美食图片")
    private String picUrl;

    /**
     * 是否上架（1是 0否）
     */
    @Excel(name = "是否上架", readConverterExp = "1=是,0=否")
    private String shelf;

    /**
     * 排序字段
     */
    @Excel(name = "排序字段")
    private Long sort;

    /**
     * 销售价格
     */
    @Excel(name = "销售价格")
    private BigDecimal salesPrice;


    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }


    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSellPoint(String sellPoint) {
        this.sellPoint = sellPoint;
    }

    public String getSellPoint() {
        return sellPoint;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setCategoryFirst(Long categoryFirst) {
        this.categoryFirst = categoryFirst;
    }

    public Long getCategoryFirst() {
        return categoryFirst;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setShelf(String shelf) {
        this.shelf = shelf;
    }

    public String getShelf() {
        return shelf;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setSalesPrice(BigDecimal salesPrice) {
        this.salesPrice = salesPrice;
    }

    public BigDecimal getSalesPrice() {
        return salesPrice;
    }


    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("sellPoint", getSellPoint())
                .append("description", getDescription())
                .append("categoryFirst", getCategoryFirst())
                .append("picUrl", getPicUrl())
                .append("shelf", getShelf())
                .append("sort", getSort())
                .append("salesPrice", getSalesPrice())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }

    public String getCategoryFirstName() {
        return categoryFirstName;
    }

    public void setCategoryFirstName(String categoryFirstName) {
        this.categoryFirstName = categoryFirstName;
    }
}
